import {Routes,RouterModule} from '@angular/router';
import {NgModule} from '@angular/core';
import { AppComponent } from './app.component';
import { SignComponent } from './sign/sign.component';
import { SucComponent } from './suc/suc.component';

//路由配置

@NgModule({
    imports: [
        RouterModule.forRoot([
            {path: '',  component: AppComponent},
            { path: 'sign', component: SignComponent },
            { path: 'suc', component: SucComponent }
        ])
    ],
    exports: [RouterModule]
})
export class AppRoutingModule {}
